/* 视频页面样式 */
.video-player-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 宽高比 */
    background: #000;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 视频信息样式 */
.video-info {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
    color: #e0e0e0;
}

.video-info h1 {
    font-size: 1.5rem;
    margin: 0 0 16px;
    color: #fff;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    color: #b0b0b0;
}

.video-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #00a8ff;
}

.video-stats {
    display: flex;
    gap: 16px;
}

.video-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-description {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 评论区域样式 */
.comments-section {
    margin-top: 20px;
}

.comment-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.comment-form textarea {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.comment-form button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background: var(--primary-color);
    color: var(--secondary-color);
    cursor: pointer;
    transition: background 0.3s ease;
}

.comment-form button:hover {
    background: var(--accent-color);
}

.comments-list {
    list-style: none;
}

.comment-item {
    margin-bottom: 10px;
    padding: 10px;
    background: var(--card-background);
    border-radius: 4px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.comment-header img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.comment-author {
    font-weight: 500;
}

.comment-time {
    color: #999;
    font-size: 12px;
}

.comment-content {
    margin-top: 5px;
    color: var(--text-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .video-player-container {
        top: 50px;
    }

    .video-info {
        padding: 0 12px;
    }

    .comments-section {
        padding: 0 12px;
    }
}

/* 视频列表页面样式 */
.video-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.video-card {
    background: var(--card-background);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-card .video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 宽高比 */
    background: #000;
}

.video-card .video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card .video-info {
    padding: 1rem;
    background: var(--card-background);
}

.video-card .video-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card .video-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.video-card .video-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-card .video-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
}

.video-card .video-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
}

.video-card .video-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.video-card .video-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .video-list {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem;
    }

    .video-card .video-info {
        padding: 0.75rem;
    }

    .video-card .video-title {
        font-size: 0.9rem;
    }

    .video-card .video-meta {
        font-size: 0.8rem;
    }

    .video-card .video-stats {
        font-size: 0.75rem;
    }

    .video-card .video-description {
        font-size: 0.8rem;
    }
}